package com.imooc.feign;

import com.imooc.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient("saas-teach")  // 告诉springcloud容器，本接口为调用远程服务的service组件(声明式客户端远程调用)
public interface TeacherFeignService {

    @GetMapping("/teac/queryTeacher")
    public GraceJSONResult queryTeacher();

}
